package svc

import (
	"day01/api/internal/config"
	"day01/day01rpc/day01rpcclient"
	"github.com/zeromicro/go-zero/zrpc"
)

type ServiceContext struct {
	Config   config.Config
	Day01rpc day01rpcclient.Day01rpc
}

func NewServiceContext(c config.Config) *ServiceContext {
	return &ServiceContext{
		Config:   c,
		Day01rpc: day01rpcclient.NewDay01rpc(zrpc.MustNewClient(c.Day01rpc)),
	}
}
